package org.dromara.customer.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.customer.domain.TaOrders;
import org.dromara.customer.domain.vo.TaOrdersVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 订单Mapper接口
 *
 * @author xiyin321
 * @date 2024-07-09
 */
public interface TaOrdersMapper extends BaseMapperPlus<TaOrders, TaOrdersVo> {

    void updateAmountById( String amount,Long ordersId);

    @DataPermission({
        @DataColumn(key = "deptName", value = "create_dept")
    })
    Page<TaOrdersVo> selectOrderPage(@Param("page") Page<Object> build,@Param(Constants.WRAPPER) Wrapper<TaOrders> taOrdersWrapper);

    TaOrdersVo selectOrderById(Long ordersId);
}
